// 获取assets静态资源
export const getAssetsFile = (folder = '', name: string, type = 'png') => {
  const path = `../../src/${folder ? folder : ''}${name}.${type}`;
  const imgUrl = new URL(path, import.meta.url).href
  if(imgUrl) return imgUrl
  else {
    // 地址错误
    console.error("Error url is wrong path");
  }
};